import 'package:flutter/material.dart';
import 'package:s_mankey/overlayDemo/Overlay_widget.dart';

class WidgetModel extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('我是抬头'),
      ),
      body: Center(
        child: MaterialButton(onPressed: (){
          OverlayWidget.show(context: context, msg: '恭喜升级成功');
        },child: Text('点我了呀'),),
      ),
    );
  }
}
